package js 
{
	/**
	 * ...
	 * @author jsbr [me@jsbr.ca]
	 */
	public class XMLHttpRequest implements IEventDispatcher 
	{
		
		
		public function XMLHttpRequest() 
		{
			
		}
		
		/* INTERFACE js.IEventDispatcher */
		
		public function hasEventListener(evtType:String):Boolean 
		{
			
		}
		
		public function removeEventListener(evtType:String, listener:Function, useCapture:Boolean):void 
		{
			
		}
		
		/**
		 * Registers an event handler function (event listener) for the specified event on the current object. 
		 * @eventType	error	Fires when an error occurs while loading an external file.
		 * @eventType	load	Occurs when an object has been loaded.
		 * @eventType	readystatechange	Occurs when the state of the request changes.
		 */
		public function addEventListener(evtType:String, listener:Function, useCapture:Boolean=false):void 
		{
			
		}
		
		/**
		 * Returns an integer value that indicates the state of the request operation. 
		 */
		public function get readyState():int { }
		
		/**
		 * Returns the body of the server's response as an array of unsigned bytes. 
		 */
		public function get responseBody():int { }
		
		/**
		 * Returns the body of the server's response as a string. 
		 */
		public function get responseText():String { }
		
		/**
		 * Builds an XMLDocument object from the body of the server's response. 
		 */
		public function get responseXML():XMLDocument { }
		
		/**
		 * Returns an integer that represents the status code of the request. 
		 */
		public function get status():int { }
		
		/**
		 * Returns a string that represents the status of the request in a friendly form.
		 */
		public function get statusText():int { }
		
		/**
		 * Interrupts the current HTTP request. 
		 */
		public function abort():void { }
		
		/**
		 * Returns a string that contains all response headers. 
		 * @return string contains all response headers. 
		 */
		public function getAllResponseHeaders():String { }
		
		/**
		 * Returns the value of the specified response header. 
		 * @param	name	Required. String that specifies the name of the response header to retrieve. The following list contains some of the commonly used names. If you need a more complete list, please visit the HTTP response headers (Wikipedia) page.
		 */
		public function getResponseHeader(name:String):String { }
		
		/**
		 * Initializes an HTTP request for sending. 
		 * @param	method	Required. String that specifies the HTTP method (GET, POST, DELETE, HEAD, OPTIONS, PUT) to use. This parameter is case-insensitive.
		 * @param	URL	Required. String that specifies the URL where the request needs to be sent. The specified URL must be in the same domain as the current document.
		 * @param	async	Optional. Boolean that specifies whether the request needs to be handled asynchronously or not.
		 * @param	user	Optional. String that specifies the name of the user for authentication. Default is an empty string.
		 * @param	password	Optional. String that specifies the password of the user for authentication. Default is an empty string.
		 */
		public function open(method:String, URL:String , async:Boolean , user:String , password:String):void { }
		
		/**
		 * Sends an HTTP request to the server. 
		 * @param	messageBody	Optional. String that specifies the body of the request. Default is an empty string. In case of GET requests (see the method parameter of the open method) this value is ignored, the request body is always empty
		 */
		public function send(messageBody:String):void { }
		
		/**
		 * Adds an HTTP header with the specified name and value to the request.
		 * @param	name	Required. String that specifies the name of the request header to send. The following list contains some of the commonly used names. If you need a detailed list, please visit the HTTP request headers (Wikipedia) page.
		 * @param	value	Required. String that specifies the value of the HTTP request header.
		 */
		public function setRequestHeader(name:String, value:String):void { }
		
		
		
		
/**
						
 
METHODE	 
						

setRequestHeader						
	 
	 
	 
EVENT
onerror						
	Fires when an error occurs while loading an external file.
onload		9				
				
	Occurs when an object has been loaded.
onreadystatechange						
	Occurs when the state of the request changes.
*/
	}

}